﻿using System.Configuration;
using HelpersDotNet.Configuration;

namespace HelpersDotNet.DomainDrivenDesign.Infrastructure.EntityFactoryFramework.Configuration
{
    public sealed class EntityMappingCollection :
        ConfigurationElementCollectionBase<EntityMappingElement>
    {
        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((EntityMappingElement)element).EntityShortTypeName;
        }
    }
}
